package Main;

import java.awt.*;

import javax.swing.JButton;
import javax.swing.JPanel;

import AI.*;


public class main {
	public static void main(String args[]) {
		Pieces p = new Pieces();
		BoardPanel bPanel = new BoardPanel(p);
		Rule rule = new Rule(p);
		AI ai = new AI(Pieces.WHITE,Pieces.BLACK,p.getPieces(),5);
		MouseAction mAction = new MouseAction(p,bPanel,rule,ai);
		bPanel.addMouseListener(mAction);
		Frame frame = new Frame();

		frame.add(bPanel);
		frame.setSize(new Dimension(bPanel.sizeX+500,bPanel.sizeY));
		frame.setVisible(true);
	}
}
